package com.soft.testmybatis.entity;

import java.time.LocalDate;
import java.util.List;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/6/10
 */
public class User {
    private Integer id;
    private String name;
    private Integer age;
    private String gender;
    private LocalDate birthday;;
    private String pic;
    private String pwd;
    private String state;

    private List<Orders> orders;

    public User() {
    }

    public User(String name, Integer age, String gender, LocalDate birthday, String pic, String pwd, String state) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.birthday = birthday;
        this.pic = pic;
        this.pwd = pwd;
        this.state = state;
    }

    public User(Integer id, String name, Integer age, String gender, LocalDate birthday, String pic, String pwd, String state) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.birthday = birthday;
        this.pic = pic;
        this.pwd = pwd;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<Orders> getOrders() {
        return orders;
    }

    public void setOrders(List<Orders> orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", birthday=" + birthday +
                ", pic='" + pic + '\'' +
                ", pwd='" + pwd + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
